package com.jingzhe.core.vo;

/**
 * 分页查询参数
 * @author wanghj
 *
 */
public class PageSearchVo {
	
	private int draw = 0;
    
    /**
     * 每页N条数据，默认为20
     */
    private int length = 20;
    
    /**
     * 开始
     */
    private int start = 0;

	public int getPage() {
		if (start <= 0) {
			return 1;
		} else {
			return start/length + 1;
		}
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}
    
    
}
